import { createContext } from "react"
export const path = localStorage.getItem('url') ? localStorage.getItem('url') : 'http://37.187.149.182:81'
export const cn = 'zh-cn'
export const en = 'en'
export const configContext = createContext(cn)
export const getLocalValue = (type: string, cnValue: string, enValue: string):string => {
  return type == cn ? cnValue: enValue
}